package com.flst;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class ProjetAndroidActivity extends Activity implements OnClickListener {
	
	 private Button button1;
	 private Button button2;
	 private Button button3;
	 private Button button4;
	    
	    
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        button1 = (Button)findViewById(R.id.button1);
        button2 = (Button)findViewById(R.id.button2);
        button3 = (Button)findViewById(R.id.button3);
        button4 = (Button)findViewById(R.id.button4);
      
        button1.setOnClickListener(this);
        button2.setOnClickListener(this);
        button3.setOnClickListener(this);
        button4.setOnClickListener(this);
    }
    
    public void onClick(View v) {
    	switch(v.getId()){
    		case R.id.button1: /** pres */
    			Intent intent1 = new Intent(this,Button1Activity.class);
    			this.startActivityForResult(intent1, 1000);		
    		break;
    		case R.id.button2: /** pres */
    			Intent intent2 = new Intent(this,Button2Activity.class);
	    		this.startActivityForResult(intent2, 1000);		
    	    break;
    		case R.id.button3: /** pres */
    			Intent intent3 = new Intent(this,Button3Activity.class);
	    		this.startActivityForResult(intent3, 1000);		
    	    break;

			case R.id.button4: /** gmap */
				Intent intent4 = new Intent(this,Button4Activity.class);
	    		this.startActivityForResult(intent4, 1000);		
			break;
    	  }
    }
   }